.crud-index {
	background-color: #fff;
	padding: 10px;
	box-sizing: border-box;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;

	&>.el-row {
		margin-bottom: 10px;

		&:last-child {
			margin-bottom: 0;
		}
	}

	.flex1 {
		flex: 1;
	}

	.crud-search-key {
		display: flex;

		&__input {
			width: 250px;
		}

		&__select {
			width: 150px;
			margin-right: 10px;
		}

		&__button {
			margin-left: 10px;
		}
	}

	.crud-adv-btn {
		& > .el-button {
			margin-left: 10px;

			i {
				margin-right: 5px;
			}
		}
	}

	.crud-data-table {
		width: 100%;

		.el-table {
			.el-loading-mask {
				.el-loading-spinner {
					.el-icon-loading {
						font-size: 25px;
						color: #000;
					}

					.el-loading-text {
						color: #666;
						margin-top: 5px;
					}
				}
			}

			&.el-loading-parent--relative {
				box-sizing: border-box;
			}

			th {
				height: 40px;
				line-height: 40px;
				padding: 0;
				background-color: #fdfdfd;

				.cell {
					font-size: 13px;
					font-weight: normal;
					color: #666;
				}
			}

			td {
				padding: 8px 0;

				.cell {
					font-size: 12px;
				}
			}
		}

		.column-op {
			.el-dropdown-link {
				cursor: pointer;
				font-size: 12px;
			}
		}
	}

	.crud-query {
		margin: 0 10px;
		border-radius: 3px;
		overflow: hidden;
		display: flex;

		button {
			border: 0;
			background-color: #fff;
			font-size: 12px;
			outline: none;
			cursor: pointer;
			color: #666;

			&:hover {
				color: #6FA8FF;
			}

			&.active {
				color: #409EFF;
			}

			span {
				display: inline-block;
				padding: 0 15px;
				border-right: 1px solid #ddd;
			}

			&:last-child {
				span {
					border: 0;
				}
			}
		}
	}

	.el-input-number {
		.el-input-number__decrease, .el-input-number__increase {
			border: 0;
			background-color: transparent;
		}
	}
}

.cl-form {
	.el-form-item {
		.el-input-number {
			&__decrease, &__increase {
				border: 0;
				background-color: transparent;
			}
		}
	}
}

.el-drawer {
	.crud-adv-search {
		width: 500px;

		&__container {
			height: calc(100vh - 175px);
			overflow-y: auto;
			margin-bottom: 10px;
			padding: 10px 20px 10px 10px;
		}

		&__footer {
			display: flex;
			align-items: center;
			height: 40px;
			padding: 10px;

			.el-button {
				flex: 1;
			}
		}
	}

	&.ttb, &.btt {
		.crud-adv-search {
			width: 100%;
		}
	}
}

.crud-upsert-dialog {
	.el-dialog__close {
		display: none;
	}
}

.el-dialog {
	&__header {
		padding: 10px !important;
		text-align: center;
		border-bottom: 1px solid #f7f7f7;

		.el-dialog__title {
			font-size: 15px;
			letter-spacing: 0.5px;
		}

		.el-dialog__headerbtn {
			display: none;
			top: 13px;

			.el-dialog__close {
				font-size: 18px;
			}
		}
	}

	&__body {
		padding: 20px;
	}

	&__footer {
		padding-bottom: 15px;
	}

	&__header-slot {
		height: 25px;
		line-height: 25px;
		text-align: center;
		position: relative;

		&-title {
			display: block;
			font-size: 15px;
			letter-spacing: 0.5px;

			&._drag {
				-moz-user-select: none;
				-webkit-user-select: none;
				-ms-user-select: none;
				-khtml-user-select: none;
				user-select: none;
				cursor: move;
			}
		}

		&-button {
			display: flex;
			position: absolute;
			right: 0;
			top: 0;

			button {
				display: flex;
				align-items: center;
				justify-content: center;
				height: 25px;
				width: 40px;
				border: 0;
				background-color: #fff;
				cursor: pointer;
				outline: none;

				i {
					font-size: 16px;

					&:hover {
						opacity: 0.7;
					}
				}
			}
		}
	}
}
